#include <iostream>

using namespace std;

struct A
{
	int _a;
	const int* _b;
	const int* _e;

	void fillBE(std::initializer_list<int> il)
	{
		_b = il.begin();
		_e = il.end();

		for (const int* i = _b; i != _e; ++i)
			cout << *i << " ";
		cout << endl;
	}
};


int main()
{
	A a1 = { 1 }, a2 = { 2 };
	a1.fillBE({ 1,2,3 });
	a2.fillBE({ 4,5,6 });
	for (const int* i = a1._b; i != a1._e; ++i)
		cout << *i << " ";
	cout << endl;
	cout << "a1:" << &a1 << endl;
	cout << a1._a << " " << a1._b << " " << a1._e << endl;
	cout << "a2:" << &a2 << endl;
	cout << a2._a << " " << a2._b << " " << a2._e << endl;


	return 0;
}